#include <cxxomfort/base.hpp>
#include <cxxomfort/cxxo-utils.hpp>
#include <cxxomfort/array.hpp>
#include <cxxomfort/algorithm.hpp>
#include <ctime>
#include <iostream>
#include <cstdlib>

int main () {
	using namespace std;
	cxxomfort::output_info(stdout); cout<< endl;
	array<short,4> au;
    srand(time(0));
	generate(begin(au), end(au), rand);
	cout<< au.size()<< "\n";
	cout<< au.back()<< "\n";
    for (size_t ix=0; ix < au.size(); ++ix) {
        cout<< au[ix]<< " ";
    }
    cout<< endl;
	CXXO_FOREACH(short u, au) {
		cout<< u<< " ";
	} 
	cout<< endl;
	
	
}
